package com.weather.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weather.domain.User;
import com.weather.mapper.UserMappper;
import com.weather.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserSeviceImpl extends ServiceImpl<UserMappper, User> implements UserService {

    @Override
    public User selectByUsername(String username, String password) {
        return baseMapper.selectOne(new QueryWrapper<User>().eq("user_name",username).eq("password",password));
    }
}
